package view.UIPlayer{
	
	import config.Config;
	
	import flash.display.Loader;
	import flash.display.Sprite;
	import flash.net.URLRequest;
	
	import vo.CardVo;
	
	public class CardView extends Sprite{
		
		public var _cardVO:CardVo;
		private var _id:int;
		
		public function CardView(vo:CardVo){
			_cardVO = vo;
			init();
		}
		
		private function init():void{
			var tmpLoader:Loader = new Loader();
			var tmpSource:String = Config.assetsXML.card.(@id == _cardVO.id).@source;
			tmpLoader.load(new URLRequest(tmpSource));
			addChild(tmpLoader);
		}
	}
}